<template>
  <div class="grand-son">孙组件{{ color }}
    <p>{{ sonInfo.name }} - {{ sonInfo.age }}</p>
  </div>
</template>

<script>
export default {
    name:'GrandSon',
    inject:['color', 'sonInfo']
};
</script>

<style>
.grand-son {
  width: 500px;
  height: 100px;
  background-color: yellow;
}
</style>